package com.zretc.api.pojo.activityModule.pojos;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Activity {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("activity_name")
    private String  activityName;
    /**
     * 活动类型
     */
    private String type;
    /**
     * 活动创建时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 活动结束时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    private String location;
    /**
     * 剩余人数
     */
    private Integer remainNumber;
    /**
     *  0 未审核 1 已通过 2 未通过 3 已结束
     */
    private Integer status;

    @TableField("initiator_id")
    private Integer initId;

    @TableField("initiator_name")
    private String initName;

    @TableField("is_deleted")
    private Integer isDeleted;
}
